﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="ARSS.Host.Visual.SessionWindow"
    Title="Session Monitor" 
    Style="{DynamicResource MyWindow}" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" SizeToContent="Height" Height="279.712" Width="354" mc:Ignorable="d" Background="#FF1E1E1E" Foreground="White">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Theme/MyTheme.xaml" />
            </ResourceDictionary.MergedDictionaries>
        	<SolidColorBrush x:Key="ListBorder" Color="#FF7F9DB9"/>
        	<DataTemplate x:Key="TreeViewHeaderTemplate">
			<Grid>
                    <TextBlock Foreground="White" Text="{Binding Name}" />
                </Grid>
			</DataTemplate>
			<HierarchicalDataTemplate x:Key="DataTemplate1"
    			ItemsSource="{Binding Children}"
    			ItemTemplate="{StaticResource TreeViewHeaderTemplate}">
				<TextBlock Foreground="White" Text="{Binding Name}" />
			</HierarchicalDataTemplate>
		</ResourceDictionary>
	</Window.Resources>

	<Grid x:Name="LayoutRoot" Margin="0,0,0,1">
		<GroupBox Margin="0,8,0,120.712" Header="Current Scene">
			<Grid Margin="0,4,3.668,0.396" d:LayoutOverrides="VerticalMargin">
				<Button x:Name="ApplySceneButton_Copy1" Background="{DynamicResource BlackGlossy_RadialBG}" Width="71.667" Content="Apply" Foreground="White" Click="ApplySceneButton_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Height="34.326"/>
				<TextBlock Width="74" Text="Scene Name :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="0,8.006,0,0" VerticalAlignment="Top" Height="19.334"/>
				<ComboBox x:Name="SceneComboBox" Margin="74,7.006,76.999,0" VerticalAlignment="Top" Height="20.666"/>
				<Button x:Name="RecordButton" Background="{DynamicResource BlackGlossy_RadialBG}" Content="Record Scene" Foreground="White" Click="RecordButton_Click" Margin="0,40.326,0,6" Width="320" Height="44"/>
			</Grid>
		</GroupBox>
		<GroupBox Header="Scene Nodes" Margin="0,0,0,8" VerticalAlignment="Bottom" Height="108.712">
			<TreeView x:Name="SceneNodeTreeView" Margin="0,8,0,8.712" Background="{x:Null}" Foreground="White" MaxHeight="300" ItemTemplate="{DynamicResource DataTemplate1}" ContextMenu="{DynamicResource TreeViewMenu}" >
				<TreeView.Resources>
					<ContextMenu x:Key="TreeViewMenu">
						<MenuItem Header="Force Release" Click="ForceRelease_Click" />
					</ContextMenu>
				</TreeView.Resources>
			</TreeView>
		</GroupBox>
	</Grid>
</Window>